const express = require('express');
const app = express();
const pool = require('./DB/db.js');

// 用户相关的路由
const userRouter = require('./routes/user.js');
// echarts图表相关的路由
const echartsRouter = require('./routes/echarts.js');
// 商品相关的路由
const goodsRouter = require('./routes/goods.js');


app.use('/user', userRouter);
app.use('/echarts', echartsRouter);
app.use('/goods', goodsRouter);

app.listen(3000, () => {
    console.log('Server is running on port 3000');
})